package org.common.eureka.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.sam.commons.entity.pojo.SecUser;
import tk.mybatis.mapper.common.Mapper;

public interface SecUserMapper extends Mapper<SecUser> {


    /**
     * 根据名称查询
     *
     * @param username
     * @return
     */
    @Select("select * from sec_user where locate(#{username},USER_NAME)>0")
    SecUser selectByUsername(@Param("username") String username);

}